#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<stdlib.h>
#include<time.h>

int main() {
	srand((unsigned int)time(NULL));
	int arr[100];
	for (int i = 0; i < 100; i++) {
		//scanf("%d", &arr[i]);
		//arr[i] = rand()%100+1;
		arr[i] = i;
	}
	int input = 0;
	scanf("%d", &input);
	for (int i = 0; i < 100; i++) {
		for (int j = 0; j < 100; j++) {
			if (arr[i] +arr[j] == input) {
				printf("%d + %d = %d\n", arr[i], arr[j], input);
				arr[i] = 10000000;
				arr[j] = 10000000;
			}
		}
	}
	return 0;
}